home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr31 / rle8_sc.zip / RLE8.H < prev    next >
Text File  |  1993-05-14  |  846b  |  21 lines

  1. /* rle8.h                       */
  2. /* by Shaun Case 1991           */
  3. /* Public Domain                */
  4. /* header for RLECOMP.C         */
  5. /* and UNRLE.C                  */
  6. /* (8 bit header versions)      */
  7.  
  8.  
  9.  
  10. #define MAX_LEN   (0x7f)              /* maximum length for runs or sequences    */
  11. #define MAX_RUN_HEADER (0xff)         /* bit 7 == 1 : run follows                */
  12.                                       /* bit 6 - 0  : length of run              */
  13.  
  14. #define MAX_SEQ_HEADER (0x7f)         /* bit 7 == 0 : unencode sequence follows  */
  15.                                       /* bit 6 - 0  : length of sequence         */
  16.  
  17. #define RUN (0x80)                    /* bit 7 == 1 : run follows                */
  18.  
  19. #define SEQ (0x00)                    /* bit 7 == 0 : unencoded sequence follows */
  20.  
  21.